import { Node } from "cc";
import { App } from "../../App";
import { IViewCtrl, ViewId } from "../../frame/common/view/IView";
import { ViewCtrlBase } from "../../frame/common/view/ViewCtrlBase";
import { DemoMainView } from "./DemoMainView";



export class DemoMainCtrl extends ViewCtrlBase implements IViewCtrl {


    get view(): DemoMainView {
        return this._view as DemoMainView;
    }

    parseDep(): void {

    }
    listClickButtons(): Node[] {
        return [this.view.btn_multiView];
    }
    model: any;


    multiView(): void {
        console.log(" demo main ctrl ... on multi view  ");
        App.ins.viewMgr.openMulti(ViewId.DEMO_FIRST_1);
    }




}